//
//  XHRPersonInfoCell.m
//  快医
//
//  Created by 孙博 on 16/7/6.
//
//

#import "XHRPersonInfoCell.h"

@implementation XHRPersonInfoCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupUI];
    }
    return  self;
}

- (void)setupUI{
    UILabel *lable = [[UILabel alloc]init];
    [self.contentView addSubview:lable];
    lable.font = [UIFont systemFontOfSize:14];
    lable.text = @"头像";
    [lable makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.centerY);
        make.left.equalTo(20);
    }];
    
    UIImageView *imgView = [UIImageView new];
    [self.contentView addSubview:imgView];
    imgView.image = [UIImage imageNamed:_imgName];
    [imgView makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.centerY);
        make.height.width.equalTo(50);
    }];
}

@end
